package com.qsmx.store.app.main.pay;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;

import com.qsmx.store.app.R;
import com.qsmx.store.app.R2;
import com.qsmx.store.app.main.display.PayDisplay;
import com.qsmx.store.app.util.DisplayUtil;
import com.qsmx.store.core.delegates.AtmosDelegate;

import butterknife.OnClick;

public class PayDelegate extends AtmosDelegate {

    private PayDisplay payDisplay;

    @OnClick(R2.id.tv_pay)
    void onPay() {
        getSupportDelegate().pop();
        payDisplay.cancel();
    }

    @Override
    public Object setLayout() {
        return R.layout.delegate_pay;
    }

    @Override
    public void onBindView(@Nullable Bundle savedInstanceState, View rootView) {
        payDisplay = (PayDisplay) DisplayUtil.showPayDisplay(getContext());
    }
}
